package com.tourism.admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tourism.admin.common.Result;
import com.tourism.admin.model.entity.UserRole;
import com.tourism.admin.mapper.UserRoleMapper;
import com.tourism.admin.service.UserRoleService;
import org.springframework.stereotype.Service;

@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole> implements UserRoleService {
    @Override
    public Result<?> deleteByUserRoleId(Long userId) {
        return Result.success().setData(this.baseMapper.deleteByUserRoleId(userId));
    }
}
